package com.news.dao;

import java.util.List;

import com.news.entity.User;
import com.news.exception.UserBCZException;
import com.news.exception.UserPwdException;

public interface UserDao {
	//  添加用户
	 int addUser(User u);
	//  修改用户
	 int udpateUser(User u);
	//	检查身份
	User checkUser(User u) throws UserPwdException, UserBCZException ;
	//通过id查询一个用户
	User getUserByuid(int uid);
	//查询所有用户
	List<User> getAllUsers();

}
